package org.jeecg.modules.wangyue.mapper;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.wangyue.entity.CoordinateJs;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.wangyue.model.res.ResCoordinateJsModel;
import org.springframework.stereotype.Component;

/**
 * @Description: 技师坐标表
 * @Author: jeecg-boot
 * @Date:   2023-06-30
 * @Version: V1.0
 */
@Component
public interface CoordinateJsMapper extends BaseMapper<CoordinateJs> {

    List<ResCoordinateJsModel> queryCoordinateJs(@Param("userId") String userId,
                                                 @Param("cityCode") String cityCode,
                                                 @Param("dateStr") String dateStr);

    String computeDistance(@Param("log") String log,
                           @Param("lat") String lat,
                           @Param("jsUserId") String jsUserId,
                           @Param("jsUserType") String jsUserType,
                           @Param("dateStr") String dateStr);

    List<String> queryOnlineJsForInactivation(@Param("dateStr") String dateStr);
}
